
/*
 * Copyright (c) 2018 feeyo All Rights Reserved.
 * ProjectName: feeyoframework
 * FileName: Constants.kt
 * Auther: erik
 * Date: 12/26/18 4:51 PM
 * Version: 1.0
 * LastModified: 12/26/18 2:36 PM
 */

package com.feeyo.groundservice.easyphotoplus.audio

import android.media.AudioFormat

object Constants {
    val RECORDER_BPP = 16
    val AUDIO_RECORDER_FILE_EXT_WAV = ".wav"
    val AUDIO_RECORDER_FILE_EXT_AAC = ".aac"
    val RECORDER_SAMPLE_RATE_LOW = 8000
    val RECORDER_SAMPLE_RATE_HIGH = 44100
    val BUFFER_BYTES_ELEMENTS = 2048 * 2
    val RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_MONO
    val RECORDER_AUDIO_ENCODING = AudioFormat.ENCODING_PCM_16BIT
    val BUFFER_BYTES_PER_ELEMENT = RECORDER_AUDIO_ENCODING
}
